<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>家庭财务</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript">
<!--
	$(document)
			.ready(
					function() {
						var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='
								+ Math.random();
						$.getJSON(url, function(data) {

							$("#loginBrowser").val(data.Browser);
							$("#loginSystem").val(data.OS);

						});
					});
	-->
</script>
<style type="text/css">
p {
	font-size: 1.5em;
	font-weight: bold;
}

#submit {
	float: right;
	margin: 10px;
}

#toregist {
	float: left;
	margin: 10px;
}
</style>
</head>
<body>
	<div data-role="page">
		<div data-role="header" data-position="fixed">
			<h1>家庭财务</h1>
		</div>
		<div data-role="content" class="ui-content">

			<div class="ui-field-contain">
				<p style="">
					<font color="#2EB1E8">家庭 - 共筑温馨小屋</font>
				</p>
				<form action="<s:url value='/logistics/login.action'/>" method="post" data-ajax="false">
					<label for="userTel">用户名:</label>
					<input type="text" name="homeUser.userTel" id="userTel" placeholder="手机号码...">
					<label for="userPwd">密 码:</label>
					<input type="password" name="homeUser.userPwd" id="userPwd" placeholder="密码...">
					<input type="hidden" name="homeUserHistory.loginBrowser" id="loginBrowser" />
					<input type="hidden" name="homeUserHistory.loginSystem" id="loginSystem" />
					<br />
					<input type="submit" value="登录" />
				</form>
                <button onclick="window.location.href='<s:url value="/home/reg.action" />'" >注册</button>
			</div>
		</div>
		<footer data-role="footer" data-position="fixed">
		<h1>
			©2015 SNlINE SN一线(<a href="snline.cn">snline.cn</a>)
		</h1>
		</footer>

	</div>
	<s:if test="hasActionErrors()">
		<s:iterator value="actionErrors">
			<script language="JavaScript">
				$(document).ready(function() {
					alert("<s:property escape="false"/>");
				});
			</script>
		</s:iterator>
	</s:if>

	<s:if test="hasActionMessages()">
		<s:iterator value="actionMessages">
			<script language="JavaScript">
				confirm("<s:property escape="false"/>");
			</script>
		</s:iterator>
	</s:if>
</body>
</html>